#!/usr/bin/python
# -*- coding: utf-8 -*-

import Ice, sys
import CameraI
from CameraI import *

class Server (Ice.Application):

    def run (self, argv):
        self.shutdownOnInterrupt()
        adapter = self.communicator().createObjectAdapter('CameraServerAdapter')
        adapter.activate()

        adapter.add(CameraI(adapter),
                    self.communicator().stringToIdentity('Camera'))
        self.communicator().waitForShutdown()

        return 0

Server().main(sys.argv)
